package com.chs.recoginition.core.enums;

/**
 * @Author CHS
 * @Date 2022/8/8 0:01
 * @Version 1.0
 **/

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 关卡难度
 */
@Getter
public enum Enum_LevelDifficulty {
    /**
     * 小白
     */
    DIFFICULTY_WHITE(0, "小白"),

    /**
     * 入门
     */
    DIFFICULTY_INTRODUCTION(1, "入门"),

    /**
     * 大师
     */
    DIFFICULTY_MASTER(2, "大师"),

    /**=
     * 创意
     */
    DIFFICULTY_ORIGINALITY(3, "创意");

    @EnumValue // 标记数据库存的值是val
    private int value = 0;
    @JsonValue
    private String text = "小白";

    private Enum_LevelDifficulty(int value, String text) {
        this.value = value;
        this.text = text;
    }
}
